(Al-An'aam) 6 : 77
فَلَمَّا رَأَى الْقَمَرَ بَازِغًا قَالَ هَٰذَا رَبِّي ۖ فَلَمَّا أَفَلَ قَالَ لَئِنْ لَمْ يَهْدِنِي رَبِّي لَأَكُونَنَّ مِنَ الْقَوْمِ الضَّالِّينَ
Then, when he saw the moon rising, he said: "This is my Lord; and when it set, he said: "If my Lord does not guide me, surely I would be among the strayed people".
See explanation 2: 159-161; 3: 90-91 and 4: 50-51.